<?php
/**
 * 后端操作
 */
require_once 'include.php';
$act = isset($_REQUEST['act']) ? $_REQUEST['act'] : '';
$id=isset($_REQUEST['id']) ? $_REQUEST['id'] : '';
if ($act == 'dologin'){//登录
    echo dologin();
} elseif($act == 'register'){//注册
    echo register();
}elseif($act == 'edit_pwd'){//修改密码
    echo edit_pwd();
}elseif($act == 'dologout'){//注销登录
    dologout();
}elseif($act == 'add_gonggao'){//发布公告
    echo add_gonggao();
}elseif($act == 'update_gonggao'){//发布公告
    echo update_gonggao();
}elseif($act == 'add_kecheng'){//添加实验、练习、资料
    echo add_kecheng();
}elseif($act == 'update_kecheng'){//修改实验、练习、资料
    echo update_kecheng();
}elseif($act == 'del'){//删除实验、练习、资料、留言、公告、用户
    echo del();
}elseif($act == 'up_file'){//上传文件
    echo up_file();
}elseif($act == 'add_reply'){//上传文件
    echo add_reply();
}elseif($act == 'find_pwd'){//上传文件
    echo find_pwd();
}

?>
